package com.tuanzi.loan.business.service.common;

import com.tuanzi.loan.business.entity.common.CommRegionNew;
import com.tuanzi.loan.business.enums.RegionTreeEnum;
import com.tuanzi.loan.core.service.CommonService;
import org.primefaces.model.TreeNode;

import java.util.List;
import java.util.Map;

/**
 * @author Ray 2017/09/21
 */
public interface CommRegionNewService extends CommonService<CommRegionNew, Long> {

	public TreeNode generateTreeNode(String city, RegionTreeEnum regionTreeEnum);
	
	public Map<String,String> treeNodesToString(TreeNode[] proAndCityNodes);

	List<String> extractProvinceFrom(TreeNode[] treeNodes);

	List<String> extractCityFrom(TreeNode[] treeNodes);
}
